require(['bootstrap','jquery-ui'],function () {
    //var str = helper.trim('  hello    ');
    $('[data-toggle="popover"]').popover();
    $('#myButton').on('click', function () {
        let $btn = $(this).button('loading');
        // business logic...
        setTimeout(function () {
            $btn.button('reset');
        },500);
        console.log($btn)
    });
    $(function() {
        $( "#sortable" ).sortable({
            update:function () {
                console.log($(this).sortable('toArray', {attribute: 'data-id'}))
            }
        });
        $( "#selectable" ).selectable();
        $( "#datepicker" ).datepicker();
    });
});